package com.yunji.product.provide;

import com.yunji.product.bo.ProductAgentListQueryBO;
import com.yunji.product.domain.ProductAgentDO;
import com.yunji.product.service.IProductAgentService;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;

@Component
public class ProductAgentProvide {

    @Resource
    private IProductAgentService productAgentService;

    public boolean create(ProductAgentDO pa) {
        return productAgentService.create(pa);
    }

    public List<ProductAgentDO> search(ProductAgentListQueryBO bo) {
        return productAgentService.search(bo);
    }

    public void deleteByManagerIds(Long... ids) {
        productAgentService.deleteByManagerIds(ids);
    }

    public void update(ProductAgentDO productManager) {
        productAgentService.update(productManager);
    }
}
